package LZ;

import java.util.Random;

public class A1 {
    public static void main(String[] args) {
    A2 a2 = new A2();
    a2.go();
        System.out.println(a2.i);
    A2 a21 = new A2();
    a21.go();
        System.out.println(a21.i);
        //随机数
        System.out.println(Math.random());
        //随机数
        Random random =new Random();
        int i = random.nextInt(2);
        System.out.println(i);

    }
}
class A2{
    static int i =1;
    static void a(){

    }
    void a2(){
        a1();
    }
    public void a1(){
        System.out.println(1);
    }
    void go(){
        System.out.println(i);
        i++;
    }

        }
